/*
 * Copyright 2020-2021 redragon.dongbin
 *
 * This file is part of redragon-erp/赤龙ERP.

 * redragon-erp/赤龙ERP is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or
 * (at your option) any later version.

 * redragon-erp/赤龙ERP is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.

 * You should have received a copy of the GNU General Public License
 * along with redragon-erp/赤龙ERP.  If not, see <https://www.gnu.org/licenses/>.
 */
/**
 * @description COA.java
 * @author dongbin
 * @version 
 * @copyright
 */

package com.erp.ledger.account.dao.model;

import java.util.Map;

/**
 * @description
 * @date 2021年1月27日
 * @author dongbin
 * 
 */
public class CoaSegment implements java.io.Serializable {
    
    //段值字段
    private String segmentField;
    //段值字段名
    private String segmentFieldName;
    //段值类型
    private String segmentFieldType;
    //段值数据类型
    private String segmentDataType;
    //段值数据Map
    private Map<String, String> segmentDataMap;
    //段值字段的值code
    private String segmentFieldValue;
    //段值字段的值描述
    private String segmentFieldValueDesc;
    
    
    
    /*
     * setter、getter方法
     */
    public String getSegmentField() {
        return segmentField;
    }
    public void setSegmentField(String segmentField) {
        this.segmentField = segmentField;
    }
    public String getSegmentFieldName() {
        return segmentFieldName;
    }
    public void setSegmentFieldName(String segmentFieldName) {
        this.segmentFieldName = segmentFieldName;
    }
    public String getSegmentDataType() {
        return segmentDataType;
    }
    public void setSegmentDataType(String segmentDataType) {
        this.segmentDataType = segmentDataType;
    }
    public Map<String, String> getSegmentDataMap() {
        return segmentDataMap;
    }
    public void setSegmentDataMap(Map<String, String> segmentDataMap) {
        this.segmentDataMap = segmentDataMap;
    }
    public String getSegmentFieldType() {
        return segmentFieldType;
    }
    public void setSegmentFieldType(String segmentFieldType) {
        this.segmentFieldType = segmentFieldType;
    }
    public String getSegmentFieldValue() {
        return segmentFieldValue;
    }
    public void setSegmentFieldValue(String segmentFieldValue) {
        this.segmentFieldValue = segmentFieldValue;
    }
    public String getSegmentFieldValueDesc() {
        if(segmentFieldValueDesc!=null&&segmentFieldValueDesc.contentEquals("0")) {
            return "";
        }
        return segmentFieldValueDesc;
    }
    public void setSegmentFieldValueDesc(String segmentFieldValueDesc) {
        this.segmentFieldValueDesc = segmentFieldValueDesc;
    }

}
